﻿using com.guojin.core.io;
using com.guojin.core.io.message;

namespace com.guojin.mj.net.message.login
{
    //发送验证码
    public class WarDetailsListReq : Message
    {
        public static int TYPE = 7;
        public static int ID = 22;

        public string AuthCode { get; set; }

        public void decode(Input _in)
        {
        }

        public void encode(Output _out)
        {
            _out.writeString(AuthCode);
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "WarDetailsListReq [authCode=" + AuthCode + ", ]";
        }

        public static WarDetailsListReq Create(string authCode)
        {
            var sendAuthCode = new WarDetailsListReq();
            sendAuthCode.AuthCode = authCode;
            return sendAuthCode;
        }
    }
}